﻿<Window x:Class="Shatranj.GameView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Shatranj="clr-namespace:Shatranj" Title="Shatranj" Height="550" Width="550"
        DataContext="{DynamicResource GameViewModel}">
    <Window.Resources>
        <Shatranj:GameViewModel x:Key="GameViewModel" />
    </Window.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition />
            <!--<RowDefinition Height="0.095*"/>
            <RowDefinition Height="0.005*"/>-->
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <!--<ColumnDefinition Width="758*" />
            <ColumnDefinition Width="232"/>
            <ColumnDefinition Width="8"/>-->
        </Grid.ColumnDefinitions>

        <Shatranj:ChessboardView Grid.Row="0" Grid.Column="0" DataContext="{Binding Path=ChessboardViewModel}" />
        <!--<Grid Grid.Row="0" Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition />
                <RowDefinition />
                <RowDefinition  />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
            
            <Shatranj:PlayerInfoView  />
            <Shatranj:MoveHistoryView Grid.Row="1" Grid.RowSpan="2"  />


            <TextBlock Text="{Binding CurrentGame.CurrentTurn}" Grid.Row="3" Margin="0,94.636,0,0.258" Grid.RowSpan="2" />
            <Button Name="MoveButton" Grid.Row="4" Background="AntiqueWhite" BorderBrush="Transparent" Content="Move" Click="MoveButton_Click" Grid.RowSpan="3" Margin="0,94.886,0,0" />
        </Grid>-->
        <!--<Button Name="MoveButton" Grid.Row="1" Background="AntiqueWhite" Content="Move" Click="MoveButton_Click" />-->

    </Grid>
</Window>